package com.smashcrush.server.service;

import com.smashcrush.model.SecureObject;
import com.smashcrush.model.User;


/**
 * The client side stub for the RPC service.
 */
public interface UserService {

	public static final String SESSION_ATTR_USER_ID = "SESSION_ATTR_USER_ID";

	Boolean isLoggedIn();

	String login(String emailAddress, String password) throws Exception;

	String register(String emailAddress, String password);

	void logout();

	User findByToken(String token);
	
	void authorize(String token, SecureObject object);

}
